<ion-header>
    <ion-toolbar>
        <ion-buttons start>
            <button ion-button (click)="dismiss()">取消</button>
        </ion-buttons>
        <ion-title>
            选择人员
        </ion-title>
        <ion-buttons end>
            <button ion-button (click)="complete()" strong>确定</button>
        </ion-buttons>
       <!--  <ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange($event)">
            <ion-segment-button value="empList">
                <span>待选人员</span>
            </ion-segment-button>
             <ion-segment-button value="empTree">
                <span>通讯录人员</span>
            </ion-segment-button>
        </ion-segment> -->
    </ion-toolbar>
</ion-header>
<ion-content class='task-detail'>
    <ion-list class='gfoa-list'>
   <!--  暂时不需要 -->
<!--         <ion-item *ngIf="!isSelectOne">
            <ion-row>
                 <button ion-button small (click)="checkALLorNot()">{{isCheckAll ? '取消选择' : "选择全部"}}</button>
            </ion-row>
        </ion-item> -->
        <div *ngFor="let item of empList; let i = index;">
            <ion-item *ngIf="item && item.empname">
                <ion-row (click)="selectChange(i)">
                    <ion-col width-10>
                        <ion-icon name="radio-button-off" *ngIf="!item.isChecked"></ion-icon>
                        <ion-icon name="checkmark-circle" *ngIf="item.isChecked" color="primary"></ion-icon>
                    </ion-col>
                    <ion-col>
                        {{item.empname}}
                    </ion-col>
                </ion-row>
            </ion-item>
        </div>
    </ion-list>
</ion-content>
